package com.redpacketcover.rc.adapter;

import android.content.Context;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

import com.bumptech.glide.Glide;
import com.bumptech.glide.load.resource.bitmap.CenterCrop;
import com.bumptech.glide.load.resource.bitmap.RoundedCorners;
import com.bumptech.glide.request.RequestOptions;
import com.redpacketcover.rc.Constants;
import com.redpacketcover.rc.R;
import com.redpacketcover.rc.bean.GoodsRecord;
import com.redpacketcover.rc.carts.CartsActivity;
import com.redpacketcover.rc.goods.GoodsDetailActivity;

import java.util.ArrayList;
import java.util.List;

public class CartsListAdapter extends BaseAdapter {

    private Context context;
    private List<GoodsRecord> list;
    private LayoutInflater layoutInflater;

    public CartsListAdapter(CartsActivity cartsActivity) {
        this.context = context;
        layoutInflater = LayoutInflater.from(context);
    }

    @Override
    public int getCount() {
        return 0;
    }

    @Override
    public Object getItem(int position) {
        return null;
    }

    @Override
    public long getItemId(int position) {
        return 0;
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        ViewHolder holder = null;
        if (convertView == null) {
            convertView = layoutInflater.inflate(R.layout.item_carts_list, null);
            holder = new ViewHolder();
//            holder.text = (TextView) convertView.findViewById(R.id.text);
            convertView.setTag(holder);
        } else {
            holder = (ViewHolder) convertView.getTag();
        }
        return convertView;
    }

    class ViewHolder{

    }
}
